export const mapping = {
  varchar: 'input',
  int: 'input',
  tinyint: 'input',
  json: 'input',
  timestamp: 'datepicker',
  datetime: 'datepicker',
  TextField: {
    String: {
      element: 'input'
    },
    Numeric: {
      element: 'number'
    },
    Integer: {
      element: 'number'
    }
  }, //文本框
  DateField: {
    DateYear: {
      element: 'datepicker',
      type: 'year'
    },
    DateMonth: {
      element: 'datepicker',
      type: 'month'
    },
    DateDay: {
      element: 'datepicker',
      type: 'date'
    },
    DateMinute: {
      element: 'datepicker',
      type: 'datetime'
    },
    DateSecond: {
      element: 'datepicker',
      type: 'datetime'
    },
    Datetime: {
      element: 'timepicker'
    }
  }, //日期控件
  CheckboxGroup: {
    String: {
      element: 'checkbox'
    },
    Numeric: {
      element: 'checkbox'
    },
    Integer: {
      element: 'checkbox'
    },
    Datetime: {
      element: 'checkbox'
    }
  }, //多选控件
  ComboBox: {
    String: {
      element: 'select'
    },
    Numeric: {
      element: 'select'
    },
    Integer: {
      element: 'select'
    },
    Boolean: {
      element: 'select'
    },
    Datetime: {
      element: 'select'
    }
  }, // 下拉选择
  RadioGroup: {
    String: {
      element: 'radio'
    },
    Numeric: {
      element: 'radio'
    },
    Integer: {
      element: 'radio'
    },
    Boolean: {
      element: 'radio'
    },
    Datetime: {
      element: 'radio'
    }
  }, //单选控件
  NumberField: {
    Numeric: {
      element: 'number'
    },
    Integer: {
      element: 'number'
    }
  }, //数字框
  TextArea: {
    String: {
      element: 'input',
      type: 'textarea'
    }
  }, //多行文本框
  HtmlEditor: {
    String: {
      element: 'word'
    }
  }, //在线word编辑器
  FileUploadField: {
    String: {
      element: 'upload'
    }
  }, //文件上传控件
  Readonly: {
    String: {
      element: 'input'
    }
  }, // 只读控件
  Password: {
    String: {
      element: 'input',
      type: 'password'
    }
  }, //密码控件
  TreeData: {
    String: {
      element: 'tree'
    }
  }, //目录树
  HiddenField: {
    String: {
      element: 'hide'
    },
    Numeric: {
      element: 'hide'
    },
    Integer: {
      element: 'hide'
    },
    Boolean: {
      element: 'hide'
    },
    Datetime: {
      element: 'hide'
    }
  } //隐藏框
}
